-- GENERATED SPELL FOR [Bash'ir Subprimal] --


function spell0_23247(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(36097,pUnit)
pUnit:RegisterEvent('Sorts_23247', 1256, 1)
end

function spell1_23247(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(15232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23247', 3000, 1)
end

function Sorts_23247(pUnit, Event)
local choix_sorts_23247 = math.random(0, 1)
if choix_sorts_23247 == 0 then
pUnit:RegisterEvent('spell0_23247', 1, 1)
end
if choix_sorts_23247 == 1 then
pUnit:RegisterEvent('spell1_23247', 1, 1)
end
end

function mob23247_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23247', math.random(1500, 3000), 1)
end

function mob23247_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23247_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23247_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23247, 1, 'mob23247_Action')
RegisterUnitEvent(23247, 2, 'mob23247_Leave')
RegisterUnitEvent(23247, 3, 'mob23247_Kill')
RegisterUnitEvent(23247, 4, 'mob23247_Die')
